package com.bingbing.back.controller;

import com.bingbing.back.po.RecruitPlan;
import com.bingbing.back.service.RecruitPlanService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


@CrossOrigin
@RestController
@RequestMapping("/recruit")
public class RecruitPlanController {
    @Resource
    private RecruitPlanService recruitPlanService;

    // 返回该学校某年份的招生计划
    @RequestMapping("searchRecruitPlan")
    public List<RecruitPlan> searchRecruitPlan(RecruitPlan recruitPlan){
        return recruitPlanService.searchRecruitPlan(recruitPlan);
    }
}
